﻿#include "qqtsysteminfo.h"

//头文件包含一定得有，否则incomplate type
//头文件必须在h文件里，否则QScopedPointer判断ClassPrivate incomplate type
#ifdef __WIN__
#include "qqtsysteminfo_win.h"
#elif defined(__DARWIN__)
#include "qqtsysteminfo_mac.h"
#else
#include "qqtsysteminfo_linux.h"
#endif

QQtSystemInfo::QQtSystemInfo ( QObject* parent )
    : QObject ( parent )
    , d_ptr ( new QQtSystemInfoPrivate ( this ) )
{

}

QQtSystemInfo::~QQtSystemInfo()
{
    delete d_ptr;
}

bool QQtSystemInfo::getOSInfo ()
{
}

bool QQtSystemInfo::getCPUInfo ( TCPUTable& cpuInfo )
{
    Q_D ( QQtSystemInfo );
    return d->getCPUInfo ( cpuInfo );
}

bool QQtSystemInfo::getMEMInfo ( TMemTable& memInfo )
{
    Q_D ( QQtSystemInfo );
    return d->getMEMInfo ( memInfo );
}

bool QQtSystemInfo::getDiskInfo ( TDiskTable& diskInfo )
{
    Q_D ( QQtSystemInfo );
    return d->getDISKInfo ( diskInfo );
}
